<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      >
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <ui:insert name="header" > <ui:include src="commonHeader.xhtml" /></ui:insert>   
        <script src="http://maps.google.com/maps/api/js?sensor=false"  type="text/javascript"></script>
        <script src="/ocanav0.4-web/resources/javascripts/jquery-1.7.2.js"  type="text/javascript"></script>
        <script type="text/javascript">
                        
                        /*
                        j_idt12:j_idt12
                        javax.faces.ViewState:-5218495344106327687:1251294206013021146
                        javax.faces.partial.ajax:true
                        javax.faces.source:j_idt12:basic
                        javax.faces.partial.execute:j_idt12:basic
                        javax.faces.partial.render:j_idt12:basic
                        j_idt12:basic:j_idt12:basic
                        j_idt12:basic_paging:true
                        j_idt12:basic_first:20
                        j_idt12:basic_rows:10
                        j_idt12:basic_updateBody:true
                         */
//                        function refresh(){
//                            var url = 'http://localhost:8080/ocanav0.4-web/secured/admin/adminIncidentView.xhtml';
//                            var prm = 'j_idt12=j_idt12&amp;'+
//                                        'javax.faces.ViewState='+(document.getElementById('javax.faces.ViewState').value)+'&amp;'+
//                                        'javax.faces.partial.ajax=true&amp;'+
//                                        'javax.faces.source=j_idt12:basic&amp;'+
//                                        'javax.faces.partial.execute=j_idt12:basic&amp;'+
//                                        'javax.faces.partial.render=j_idt12:basic&amp;'+
//                                        'j_idt12:basic=j_idt12:basic&amp;'+
//                                        'j_idt12:basic_paging=true&amp;'+
//                                        'j_idt12:basic_first=0&amp;'+
//                                        'j_idt12:basic_rows=10&amp;'+
//                                        'j_idt12:basic_updateBody=true';
//                            
//                            $.ajax({
//                                type: "POST", 
//                                url: url, 
//                                data: prm,
//                                beforeSend: function(req) {
//                                    req.setRequestHeader("Faces-Request", "partial/ajax");
//                                    req.setRequestHeader("Accept:application/xml", "text/xml, */*; q=0.01");
//                                },
//                                success: function(msg){
//                                    
//                                    
//                                    var updateTbl = msg.getElementById('j_idt12:basic');
//                                    var viewState = msg.getElementById('javax.faces.ViewState');
//                                    var tableBody = document.getElementById('j_idt12:basic_data');
//                                    tableBody.innerHTML = (updateTbl.firstChild.nodeValue);
//                                    
//                                    document.getElementById('javax.faces.ViewState').value = viewState.firstChild.nodeValue;
//                                    setTimeout(refresh,5000);
//                                }
//                            });
//                            
//                        } 
//                        
//                        $(document).ready(function(){
//                            refresh();
//                        });
//                    </script>
        <h:outputStylesheet name="stylesheets/all.css"/> 
<!--        <link rel="stylesheet" type="text/css" href="css/classic.css"/> -->

        <title>OCANA Project</title>
    </h:head>
    <h:body> 
        <div id="content">
            <ui:insert name="content" >
                <ui:include src="commonContent.xhtml" />
            </ui:insert>
        </div>
        <div id="footer">
            <ui:insert name="footer" >
                <ui:include src="commonFooter.xhtml" />
            </ui:insert>
        </div>
    </h:body> 
</html>